package com.example.service.Impl;

import com.example.UserMapper.UserMapper;
import com.example.domain.ConbinatinPojo;
import com.example.domain.User;
import com.example.service.UserService;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    public User getUserById(String s) {
        return userMapper.selectByPrimaryKey(Integer.valueOf(1));
    }

    @Override
    public Integer selectCountSysSystemVOList() {
        return userMapper.selectFindAllCount();
    }

    @Override
    public List<ConbinatinPojo> selectSysSystemVOList(int pageNumber, Integer pageSize) {
        return userMapper.selectSysSystemVOList(pageNumber,pageSize);
    }
}
